using UnityEngine;

namespace CinemaDirector
{
	[CutsceneItem("GG-Action", "SetVisibilityEvent")]
	public class SetVisibilityEvent : CinemaActorEvent
	{
		public GGVBool visible = new GGVBool();

		public override void Trigger(GameObject actor)
		{
			visible.Init(base.Cutscene.variables);
			if (!visible.isCurrent)
			{
				UITools.SetActive(actor, visible.value);
			}
		}
	}
}
